import { createRouter, createWebHashHistory } from 'vue-router'
import { publicRoutes } from './routes'

// 创建路由
const router = createRouter({
  history: createWebHashHistory(),
  routes: publicRoutes,
  scrollBehavior() {
    return { left: 0, top: 0 }
  },
})

export default router
